<template>
    <div class="page-header">
        <div>
            <div class="title">{{title}}
            </div>
            <div class="sub-title">{{subTitle}}
            </div>
        </div>
        <slot></slot>
    </div>
</template>

<script>
    export default {
        name: 'pageHeader',
        props: {
            title: String,
            subTitle: String,
        },
        data() {
            return {

            }
        },
    }
</script>
<style lang="less" scoped>
    .page-header {
        background: #fff;
        padding: 16px 32px;
        border-bottom: 1px solid #e8eaec;
        margin-bottom: 16px;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;

        .title {
            // font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
            display: inline-block;
            color: #17233d;
            font-weight: 500;
            font-size: 20px;
        }

        .sub-title {
            // font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
            line-height: 1.5;
            margin-top: 16px;
            color: #515a6e;
            background-color: #fff;
            -webkit-font-smoothing: antialiased;
        }
    }
</style>